// 在Student结构中使用枚举

#include <iostream>
#include <string.h>

using namespace std;

enum Department {
    Tech,
    ArtsAndSci,
    DevStudies,
};

struct Student {
    char name[40];
    char address[80];
    char ID_Num[15];
    Department dept;
};

int main() {
    Student s;
    strcpy(s.name, "Melissa Williams");
    strcpy(s.address, "123 Main Street, C-Ville, USA");
    strcpy(s.ID_Num, "123-45-6789");
    s.dept = Tech;

    switch (s.dept) {
        case Tech:
            cout << s.name << " 被 技术系 录取了\n";
            break;
        case ArtsAndSci:
            cout << s.name << " 被 科学艺术系 录取了\n";
            break;
        case DevStudies:
            cout << s.name << " 被 社会发展研究系 录取了\n";
            break;
    }
}

